package com.lry.jvm.classfile.constantpool;

import com.lry.jvm.classfile.ClassReader;

public class ConstantIntegerInfo implements ConstantInfo{

    private Integer value;

    public ConstantIntegerInfo(ClassReader reader) {
        value = reader.nextU4ToInt(); //u4
    }

    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Integer: " + value;
    }

}
